home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
EDUCHERS
/
ECR.LZH
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-03-09
|
7KB
|
241 lines
@echo off
if "%1" == "" goto error1
if "%2" == "" goto error1
if not exist INSTALL.BAT goto error2
if "%2" == "HARD" goto hard
if "%2" == "Hard" goto hard
if "%2" == "hard" goto hard
if "%2" == "HIGH" goto high
if "%2" == "High" goto high
if "%2" == "high" goto high
if "%2" == "LOW" goto low
if "%2" == "Low" goto low
if "%2" == "low" goto low
goto error1
:hard
mkdir %1
cls
@echo on
copy README.DOC %1 /v
copy ECRORDER.FRM %1 /v
copy INSTALL.BAT %1 /v
copy ECR.EXE %1 /v
copy ECR.OVR %1 /v
copy ECR.CFG %1 /v
copy ECR2WP.WPM %1 /v
copy ECR2WP.LTR %1 /v
copy ECR2WPQK.WPM %1 /v
copy ECR2WPQK.LTR %1 /v
copy SAMPLE.UTL %1 /v
copy SAMPLE.SFL %1 /v
copy SAMPLE.STD %1 /v
copy SAMPLE.SCO %1 /v
copy SAMPLE.RPT %1 /v
copy AUTOEXEC.360 %1 /v
copy AUTOEXEC.720 %1 /v
copy CONFIG.ECR %1 /v
copy ECRDOC.EXE %1 /v
@echo off
ECRDOC %1
echo
echo Files copied.
echo
echo
echo Make sure your CONFIG.SYS file (located in your root directory)
echo contains the line FILES=10 or higher. Generally, this will
echo already be the case.
echo
echo Before typing any of the lines below, you need to make the
echo ECR directory your current directory by typing
echo CD %1
echo
echo To see last-minute updates, type
echo TYPE README.DOC
echo
echo The user's guide contains tutorial and reference sections.
echo To print the user's guide type
echo COPY ECR.DOC PRN:
echo
echo To start using the Electronic Class Roll type
echo ECR
echo
echo Enjoy!
goto end
:high
cls
@echo on
copy README.DOC %1 /v
copy ECRORDER.FRM %1 /v
copy INSTALL.BAT %1 /v
copy ECR.EXE %1 /v
copy ECR.OVR %1 /v
copy ECR.CFG %1 /v
copy ECR2WP.WPM %1 /v
copy ECR2WP.LTR %1 /v
copy ECR2WPQK.WPM %1 /v
copy ECR2WPQK.LTR %1 /v
copy SAMPLE.UTL %1 /v
copy SAMPLE.SFL %1 /v
copy SAMPLE.STD %1 /v
copy SAMPLE.SCO %1 /v
copy SAMPLE.RPT %1 /v
copy AUTOEXEC.360 %1 /v
copy AUTOEXEC.720 %1 /v
copy CONFIG.ECR %1 /v
copy ECRDOC.EXE %1 /v
@echo off
ECRDOC %1
if not exist %1\AUTOEXEC.BAT copy AUTOEXEC.720 %1\AUTOEXEC.BAT
if exist %1\CONFIG.SYS goto msg1
copy CONFIG.ECR %1\CONFIG.SYS
echo
echo Files copied.
echo
goto cont1
:msg1
echo
echo Files copied.
echo
echo
echo Make sure the CONFIG.SYS file on your program disk
echo contains the line FILES=10 or higher. Generally, this will
echo already be the case.
:cont1
echo
echo Before typing any of the lines below, you need to make the drive
echo containing the ECR files your current drive by typing
echo %1
echo
echo To see last-minute updates, type
echo TYPE README.DOC
echo
echo The user's guide contains tutorial and reference sections.
echo To print the user's guide type
echo COPY ECR.DOC PRN:
echo
echo To start using the Electronic Class Roll type
echo ECR
echo
echo Enjoy!
goto end
:low
cls
@echo on
copy README.DOC %1 /v
copy ECRORDER.FRM %1 /v
copy ECR.EXE %1 /v
copy ECR.OVR %1 /v
copy ECR.CFG %1 /v
@echo off
if not exist %1\AUTOEXEC.BAT copy AUTOEXEC.360 %1\AUTOEXEC.BAT
if exist %1\CONFIG.SYS goto msg2
copy CONFIG.ECR %1\CONFIG.SYS
goto cont2
:msg2
echo
echo Make sure the CONFIG.SYS file on your Program Disk
echo contains the line FILES=10 or higher. Generally, this will
echo already be the case.
echo
:cont2
echo Insert a second blank, formatted diskette (the Classes Disk) in drive B and
pause
@echo on
copy ECR2WP.WPM %1 /v
copy ECR2WP.LTR %1 /v
copy ECR2WPQK.WPM %1 /v
copy ECR2WPQK.LTR %1 /v
copy SAMPLE.UTL %1 /v
copy SAMPLE.SFL %1 /v
copy SAMPLE.STD %1 /v
copy SAMPLE.SCO %1 /v
copy SAMPLE.RPT %1 /v
@echo off
ECRDOC %1
echo
echo Files copied.
echo
echo
echo Keep the original ECR distribution disk in a safe place in case
echo you want to install the Electronic Class Roll onto another disk.
echo
echo
echo Before typing any of the lines below, you need to make insert the
echo Program Disk in drive A and the Classes Disk in drive B.
echo
echo To see last-minute updates, type
echo TYPE A:README.DOC
echo
echo The user's guide contains tutorial and reference sections.
echo To print the user's guide type
echo COPY B:ECR.DOC PRN:
echo
echo To start using the Electronic Class Roll, type
echo ECR B:
echo
echo Enjoy!
goto end
:error1
cls
echo Welcome to the Electronic Class Roll installation program!
echo
echo You need to type two keywords after the word INSTALL. The first
echo keyword tells in which drive and directory you want the Electronic
echo Class Roll files installed. The second keyword tells on what kind
echo of disk you are installing the Electronic Class Roll. It is "LOW"
echo if you are installing on 360K floppy disks, "HIGH" if you are
echo installing on a 3-1/2" or high-density floppy disk, or "HARD" if
echo you are installing on a hard disk (don't include the quotes).
echo
echo INSTALLING ON 360K FLOPPY DISKS
echo This procedure assumes both drives A and B are 360K drives. If you
echo have a higher-density drive, skip to the next section. You will need
echo two blank, formatted diskettes. Call the first the "Program Disk"
echo and the second the "Classes Disk." It's best if the Program Disk is
echo bootable (formatted with the "/s" parameter). Insert the ECR
echo distribution disk in drive A, the Program Disk in drive B, and type
echo A:
echo INSTALL B: LOW
echo
echo To see the rest of the instructions,
pause
cls
echo INSTALLING ON A 3-1/2" OR HIGH-DENSITY FLOPPY DISK
echo You will need one blank, formatted diskette. It's best if it is
echo bootable (has been formatted with the "/s" parameter). Insert the
echo ECR distribution disk in one drive and the blank disk in another.
echo Make the drive containing the ECR distribution disk the current drive.
echo Then re-type INSTALL with the first keyword being the drive containing
echo the blank disk, and the second keyword "HIGH." For example, to install
echo the ECR to a blank disk in drive B, type
echo INSTALL B: HIGH
echo
echo INSTALLING ON A HARD DISK
echo You need approximately 440K free on your hard disk. Make the drive
echo (or directory) containing the ECR distribution files the current one.
echo Then re-type INSTALL with the first keyword being the drive and
echo directory for where you want to install the ECR files, and the second
echo keyword "HARD." For example, to install the ECR to a sub-directory
echo called ECR on drive C, type
echo INSTALL C:\ECR HARD
echo
echo
goto end
:error2
cls
echo The Electronic Class Roll distribution files were
echo not found in the current drive (or directory).
echo
echo Please change to the drive (or directory) where these
echo files are located, then run this program again.
echo
echo For example, if you are installing the Electronic
echo Class Roll from a floppy in drive A, first type
echo A:
echo
echo then run this program again.
echo
echo
goto end
:end